import React from 'react'
//获取列表
export async function apiRolePage(params = {}){
   return await React.$post('/admin/sys/role/page', params);
}
//获取列表
export async function apiRoleList(params = {}){
    return await React.$post('/admin/sys/role/list', params);
}
//新增数据
export async function apiRoleAdd(params){
    return await React.$post('/admin/sys/role/add', params)
}
//修改数据
export async function apiRoleUpdate(params){
    return await React.$post('/admin/sys/role/edit', params)
}
//查看数据
export async function apiRoleDetails(params){
    return await React.$post('/admin/sys/role/view', params)
}
//删除数据
export async function apiRoleDel(params){
    return await React.$post('/admin/sys/role/del', params)
}
//修改状态数据
export async function apiRoleStatus(params){
    return await React.$post('/admin/sys/role/changeStatus', params)
}
//获取所有菜单树状图
export async function apiRoleMenu(params) {
    return await React.$post('/admin/sys/roleMenu/menuList', params)
}
//获取角色菜单
export async function apiRoleMenuByRoleId(params) {
    return await React.$post('/admin/sys/role/getMenuIdentListByUserId', params)
}

//增加角色菜单关系
export async function apiRoleToMenu(params) {
    return await React.$post('/admin/sys/role/updateMenusByRoleId', params)
}
//修改角色状态 /role/changeState
export async function apiRoleChangeState(params) {
    return await React.$post('/admin/sys/role/changeState', params)
}
//角色菜单查询
export async function apiRoleMenuInfo(params) {
    return await React.$post('/admin/sys/roleMenu/info', params)
}